//
//  MSProjectRadarCell.m
//  SocietySale
//
//  Created by Mike on 16/11/18.
//  Copyright © 2016年 Mike. All rights reserved.
//

#import "MSProjectRadarCell.h"

@interface MSProjectRadarCell ()
@property (nonatomic, strong) UILabel *titleLabel;
@end

@implementation MSProjectRadarCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initView];
    }
    return self;
}

- (void)initView {
    self.titleLabel = [self creatLabel:CGRectMake(12, 0, SCREEN_WIDTH, 44)];
    
    _tagImage = [[UIImageView alloc] initWithFrame:CGRectMake(SCREEN_WIDTH-32, 16, 18, 11)];
    _tagImage.image = [UIImage imageNamed:@"gou"];
    [self.contentView addSubview:_tagImage];
    _tagImage.hidden = YES;
    
    _horizonLineView =[[UIView alloc] initWithFrame:CGRectMake(12, 43.4, SCREEN_WIDTH-24, 0.6)];
    _horizonLineView.backgroundColor = kNormalGray;
    [self.contentView addSubview:_horizonLineView];
}

//创建label
- (UILabel*)creatLabel:(CGRect)frame{
    UILabel *label = [[UILabel alloc] initWithFrame:frame];
    label.font = HeitiFont(14);
    label.textColor = kLightBlackColor;
    [self.contentView addSubview:label];
    return label;
}

- (void)setValueStr:(NSString *)valueStr{
    self.titleLabel.text = valueStr;
}

@end
